package chapter11.section3;

/*程序11-2f BankApp 银行业务程序启动类*/
public class BankApp {
    public static void main(String[] args) {
        Account account = new Account("张华", 1000);
        QueueMachine queue = new QueueMachine();
        TransactionGenerator generator = new TransactionGenerator(queue, account);
        Clerk clerk1 = new Clerk(queue, "职员甲");
        Clerk clerk2 = new Clerk(queue, "职员乙");
        generator.start();
        clerk1.start();
        clerk2.start();
    }
}
